package com.boarsoft.flow.core.bean;

import com.boarsoft.flow.core.SimpleFlow;

public interface SuspendHandler {
	/**
	 * 此方法应保存额外的数据，而不是整个FLOW
	 * 
	 * @param flow
	 * @throws Throwable
	 */
	void save(SimpleFlow flow) throws Throwable;

	/**
	 * 
	 * @param flow
	 * @param exData
	 * @throws Throwable
	 */
	void merge(SimpleFlow flow, Object exData) throws Throwable;
}
